﻿package ;
import flash.display.SimpleButton;
import flash.display.Sprite;
import flash.filters.BitmapFilter;
import flash.filters.BlurFilter;
import flash.filters.GlowFilter;
import flash.Lib;
import flash.system.System;
import flash.text.TextField;
import flash.text.TextFieldAutoSize;
import flash.text.TextFormat;
import fpc.containers.Panel;
import fpc.controls.buttons.Button;
import fpc.controls.text.TextArea;
import fpc.FoolProofComponents;
import fpc.layouts.FormLayout;
import fpc.layouts.GridLayout;
import fpc.layouts.utility.SizeInfo;
import fpc.layouts.VLayout;
import fpc.styles.skins.IScaledButtonSkin;
import fpc.styles.Style;
import fpc.utils.ClassFactory;
import fpc.utils.Conveyor;
import fpc.utils.FunctionFactory;
import fpc.utils.IFactory;
import glam.skins.GlamPanel;
import glam.skins.GlamScaledButton;
import glam.skins.GlamTextBackground;
import fpc.containers.Container;
import tests.CanvasTest;
import tests.DependenceTest;
import tests.FineVBoxTest;
import tests.FormLayoutTest;
import tests.GridLayoutTest;
import tests.LabelTest;
import tests.ListTest;
import tests.RadioButtonTest;
import tests.ScrollBarTest;
import tests.VBoxTest;

class Main extends Sprite
{
	static function main()
 	{
		Style.defaultStyle
			.setSkin(Button.SKIN_TYPE_BUTTON, new GlamScaledButton())
			.setSkin(TextArea.SKIN_TYPE_TEXT_AREA, new GlamTextBackground())
			.setSkin(Panel.SKIN_TYPE_PANEL, new GlamPanel());
		
		FoolProofComponents.initStage(Lib.current.stage);
		
		/*
		Lib.current.addChild(new ComponentTest());
		Lib.current.addChild(new LabelTest());
		Lib.current.addChild(new ButtonTest());
		Lib.current.addChild(new PanelTest());
		Lib.current.addChild(new CheckBoxTest());
		Lib.current.addChild(new SliderTest());
		Lib.current.addChild(new InputTextTest());
		Lib.current.addChild(new NewProgressBarTest());
		Lib.current.addChild(new ColorChooserTest());
		Lib.current.addChild(new CommonTest());
		Lib.current.addChild(new OtherTest());
		Lib.current.addChild(new FrameUtilTest());
		Lib.current.addChild(new SkinTest());
		Lib.current.addChild(new VBoxTest());
		Lib.current.addChild(new FineVBoxTest());
		Lib.current.addChild(new ListTest());
		//*/
		
		/*
		Lib.current.addChild(new RadioButtonTest());
		Lib.current.addChild(new GridLayoutTest());
		Lib.current.addChild(new DependenceTest());
		Lib.current.addChild(new CanvasTest());
		Lib.current.addChild(new FormLayoutTest());
		Lib.current.addChild(new RadioButtonTest());
		//*/
		
		Lib.current.addChild(new ScrollBarTest());
	}
}